package com.cherry.androidcode.onresult


object ResultApiHelper {



}

/*
*     //必须在onStart之前注册才不会报错
 private final ActivityResultLauncher<Intent> mScanEarTagLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
        if (result.getResultCode() == RESULT_STRING) {
            String ear = result.getData().getStringExtra(ActivityCapture.EAT_TAG);
        }
    });

   mScanEarTagLauncher.launch(new Intent(ActivityCowInfoList.this, ActivityCommonScan.class));
*
*   activity与fragment 通讯
*
*   getSupportFragmentManager().setFragmentResult(String requestKey, bundle);
* getSupportFragmentManager().setFragmentResultListener(String requestKey, this, (requestKey, bundle) -> {
        });
*
*
* */